<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户注册</title>
    <link rel="stylesheet" href="styles.css">
    <link rel="stylesheet" href="register.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<body>
    <div class="container">
        <!-- 顶部标题 -->
        <div class="top-nav">
            <h1>医疗服务平台</h1>
        </div>

        <!-- 注册区域 -->
        <div class="register-container">
            <div class="register-header">
                <img src="https://picsum.photos/100/100" alt="Logo" class="register-logo">
                <h2>用户注册</h2>
                <p>欢迎加入医疗服务平台</p>
            </div>

            <form id="registerForm" class="register-form" onsubmit="event.preventDefault(); register();">
                <!-- 基本信息 -->
                <div class="form-section">
                    <h3>账号信息</h3>
                    <div class="form-group">
                        <div class="input-icon">
                            <i class="fas fa-user"></i>
                            <input type="text" id="username" name="username" placeholder="请输入用户名" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="input-icon">
                            <i class="fas fa-lock"></i>
                            <input type="password" id="password" name="password" placeholder="请输入密码" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="input-icon">
                            <i class="fas fa-lock"></i>
                            <input type="password" id="confirmPassword" name="confirmPassword" placeholder="请确认密码" required>
                        </div>
                    </div>
                </div>

                <!-- 个人信息 -->
                <div class="form-section">
                    <h3>个人信息</h3>
                    <div class="form-group">
                        <div class="input-icon">
                            <i class="fas fa-id-card"></i>
                            <input type="text" id="realName" name="realName" placeholder="请输入真实姓名" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="input-icon">
                            <i class="fas fa-id-card"></i>
                            <input type="text" id="idCard" name="idCard" placeholder="请输入身份证号" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="input-icon">
                            <i class="fas fa-phone"></i>
                            <input type="tel" id="phone" name="phone" placeholder="请输入手机号" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="input-icon">
                            <i class="fas fa-envelope"></i>
                            <input type="email" id="email" name="email" placeholder="请输入邮箱">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="gender-group">
                            <span class="gender-label">性别：</span>
                            <div class="gender-options">
                                <label>
                                    <input type="radio" name="gender" value="男" checked> 男
                                </label>
                                <label>
                                    <input type="radio" name="gender" value="女"> 女
                                </label>
                                <label>
                                    <input type="radio" name="gender" value="其他"> 其他
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="input-icon">
                            <i class="fas fa-calendar"></i>
                            <input type="date" id="birthDate" name="birthDate" placeholder="请选择出生日期">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="input-icon">
                            <i class="fas fa-map-marker-alt"></i>
                            <input type="text" id="address" name="address" placeholder="请输入详细地址">
                        </div>
                    </div>
                </div>

                <!-- 协议 -->
                <div class="form-group agreement">
                    <input type="checkbox" id="agree" name="agree" required>
                    <label for="agree">
                        我已阅读并同意 <a href="#">《用户协议》</a> 和 <a href="#">《隐私政策》</a>
                    </label>
                </div>

                <button type="submit" class="register-btn">注册</button>
                <div class="login-link">
                    <span>已有账号?</span>
                    <a href="/demo/login/login.html">立即登录</a>
                </div>
            </form>
        </div>

        <!-- 版权信息 -->
        <div class="footer">
            <p>© 2023 医疗服务平台 版权所有</p>
        </div>
    </div>
    <script src="register.js"></script>
</body>
</html> 